TextShape AddHatchPatternOffsetFilling

Adds an Offset filling type pattern to the shape

public void AddHatchPatternOffsetFilling(float offsetGap, HatchOffsetStyle style, HatchOffsetAlgorithm algorithm, HatchCornerStyle cornerStyle)

 

Return value

void  

 

Parameters

float offsetGap The gap between each offset hatch
HatchOffsetStyle style Set the offset hatch style
HatchOffsetAlgorithm algorithm Set the ofsset hatching algorithm
HatchCornerStyle cornerStyle Set the corner style

 

Example

Copy
TextShape textShape = new TextShape();

textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.DotDurationMicroseconds = 2;

textShape.HorizontalAlign = TextHorizontalAlign.Left;
textShape.VerticalAlign = TextVerticalAlign.Center;
textShape.WordWrap = true;
textShape.LineSpaceStyle = TextLineSpaceStyle.Factor;
textShape.LineSpace = 1f;

textShape.AddHatchPatternOffsetFilling(0.2f, HatchOffsetStyle.InwardToOut, HatchOffsetAlgorithm.DirectOffset, HatchCornerStyle.Sharp);

vectorImage.AddText(textShape);